<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- 
        插值语法一般用在标签体的值{{}}
        指令语法:用于解析标签(标签体,标签属性, 绑定事件)上，类似于v-bind
     -->
    <div id="root">
        <h1>hellow {{name}}</h1>
        <!--v-bind绑定指令，就把下面的url当成一个js表达式去执行了-->
        <!-- v-bind: 还可以简写为: -->
        <a v-bind:href="url" :x="hellow">奥比奥齐</a>
    </div>
</body>
<script src="../js/vue.js"></script>
<script>
    new Vue({
        el: '#root',
        data: {
            name: "sss",
            url: "www.baidu.com",
            hellow: "nihao"
        }
    })
</script>

</html>